package com.loyal.loyalerp.humenresource.personimage.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.loyal.loyalerp.humenresource.personimage.entity.Rs_PersonImage;
import com.loyal.loyalerp.humenresource.personimage.exception.UploadException;
import com.loyal.loyalerp.humenresource.personimage.mapper.Rs_PersonImageMapper;
import com.loyal.loyalerp.humenresource.personimage.service.PersonImageWriteService;
@Service
public class PersonImageWriteServiceImpl implements PersonImageWriteService {
	@Autowired
	private Rs_PersonImageMapper imageMapper;
	@Override
	public void insert(Rs_PersonImage personImage) throws UploadException {
		int rs = imageMapper.insertSelective(personImage);
		if(rs!=1) {
			throw new UploadException("上传失败");
		}
	}
	@Override
	public int add(String personName, String imageName, String imageUrl) {
		
		return 0;
	}

}
